package com.cj.file.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/8 17:28
 */
public interface FileService {

    /**
     * 文件上传
     * @param file
     * @return
     */
    Map<String, Object> upLoad(MultipartFile file);

    /**
     * 文件下载
     * @param map
     */
    void downLoad(Map<String, Object> map, HttpServletResponse response);

    /**
     * 文件展示
     * @param map
     * @return
     */
    String fileDisplay(Map<String, Object> map);

    /**
     * 文件删除
     * @param map
     * @return
     */
    boolean fileDelete(Map<String, Object> map);

    /**
     * @description: html转world导出
     * @author: chengjun
     * @date: 2023/8/11 8:43
     * @param: [map, response]
     * @return: void
     **/
    void htmlToWorldExport(Map<String, Object> map, HttpServletResponse response);

    /**
     * @description:world导出
     * @author: chengjun
     * @date: 2023/8/11 8:48
     * @param: [map, response]
     * @return: void
     **/
    void worldExport(Map<String, Object> map, HttpServletResponse response);

    boolean getIfInclude(String jd, String wd);

    Map<String, Object> shpFileImportCalculate(MultipartFile file);
}
